using System.Collections.Generic;

namespace JlPay.Sdk.Core
{
    /// <summary>
    /// 加密服务接口
    /// </summary>
    public interface ICryptoService
    {
        /// <summary>
        /// 加密请求
        /// </summary>
        /// <param name="request">请求对象</param>
        /// <returns>加密后的HTTP头部信息</returns>
        Dictionary<string, string> EncryptRequest(object request);

        /// <summary>
        /// 解密响应
        /// </summary>
        /// <param name="response">响应对象</param>
        /// <param name="headers">HTTP头部信息</param>
        void DecryptResponse(object response, Dictionary<string, string> headers);
    }
} 